/**
 * 
 */
package fr.ants.controller.command;

import fr.ants.controller.clock.Clock;

/**
 * To slow the simulation.
 * 
 * @author Guillaume Ruscassie
 * 
 */
public class SlowCommand implements Command {

	/**
	 * Clock.
	 */
	private final Clock clock;

	/**
	 * Build.
	 * 
	 * @param Clock clock
	 */
	public SlowCommand(final Clock clock) {
		this.clock = clock;
	}

	
	@Override
	public void execute() {
		clock.setDelay(clock.getDelay() * 2);

	}

}
